<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<title>${session.front_login_user.login_name!}的个人资料 - ${site.name!}</title>
<link rel="shortcut icon" href="${ctx}/favicon.ico" />
<link rel="icon" href="${ctx}favicon.ico"/>
<!-- 禁止浏览器初始缩放 -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<!-- 引入主题样式表 -->
<link type="text/css" rel="stylesheet" href="${ctx}/template/themes/${site.theme!}/css/style.css" />
<!-- 引入主题响应式样式表-->
<link type="text/css" rel="stylesheet" href="${ctx}/template/themes/${site.theme!}/css/responsive.css" />
<!-- 引入自定义样式表 -->
<link type="text/css" rel="stylesheet" href="${ctx}/template/themes/${site.theme!}/css/custom.css" />
<!-- 引入字体样式表-->
<link rel="stylesheet" type="text/css" href="${ctx}/template/themes/${site.theme!}/css/fonts/font-awesome/font-awesome.css"  media="all" />
<!-- 引入用户自定义代码 -->
<script type='text/javascript' src='${ctx}/template/themes/${site.theme!}/js/jquery.min.js'></script>
<!-- IE Fix for HTML5 Tags -->
<!--[if lt IE 9]>
<script src="${ctx}/template/themes/${site.theme!}/js/html5.js"></script>
<script src="${ctx}/template/themes/${site.theme!}/js/css3-mediaqueries.js"></script>
<script src="${ctx}/template/themes/${site.theme!}/js/PIE_IE678.js"></script>
<link rel="stylesheet" type="text/css" href="${ctx}/template/themes/${site.theme!}/css/iefix.css"  media="all" />
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="${ctx}/template/themes/${site.theme!}/css/fonts/font-awesome/font-awesome-ie7.min.css" media="all" />
<![endif]-->
<!--[if IE 6]>
<script src="${ctx}/template/themes/${site.theme!}/js/kill-IE6.js"></script>
<![endif]-->
</head>
<body id="wrap" class="archive">
<div id="body-container">
<?include("../header.html"){}?>
<section id="content-container">
<div class="breadcrumbs">
	<div class="container clr">
		<div id="breadcrumbs">
		<h1><i class="fa fa-user"></i> 用户中心</h1>
		<div class="breadcrumbs-text">修改 浪迹天涯 的密码</div>
		</div>
	</div>
</div>
<div id="main-wrap">
	<div class="container pagewrapper clr" id="author-page">
		<?include("userleft.html",{current:"newpwd"}){}?>
		<div class="pagecontent">
		<!-- Content -->
		<div class="content">
			<form id="pass-form" class="form-horizontal" action="${url}/user/updatePwd" method="post" onsubmit="check();">
				<div class="page-header">
					<span id="msg" class="red">${error!}</span>
				</div>
				<div class="form-group">
					<label for="pass1" class="col-sm-3 control-label">原密码</label>
					<div class="col-sm-9">
						<input type="password" class="form-control" id="oldpass" name="oldpass" autocomplete="off" />
						<span class="help-block">原密码</span>
					</div>
				</div>
				<div class="form-group">
					<label for="pass2" class="col-sm-3 control-label">重复新密码</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" id="newpass" name="newpass" />
						<span class="help-block">新密码</span>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-offset-3 col-sm-9">
						<button type="submit" class="btn btn-primary">保存更改</button>
					</div>
				</div>
			</form>
		 </div>
		</div>
	</div>
</div>
</section>
</div>
<script type="text/javascript">
var ajax_sign_object = {"redirecturl":"${url}","ajaxurl":"${url}/ajax","loadingmessage":"\u6b63\u5728\u8bf7\u6c42\u4e2d\uff0c\u8bf7\u7a0d\u7b49..."};
var tin = {"ajax_url":"${url}/ajax","tin_url":"${url}/template/themes/${site.theme!}/","uid":${session.front_login_user.id!0}}
</script>
<script type='text/javascript' src='${ctx}/template/themes/${site.theme!}/js/function.js'></script>
<script type='text/javascript' src='${ctx}/template/themes/${site.theme!}/js/theme.js'></script>
<script type="text/javascript">
function check(){
	if($.trim($("#oldpass").val()).length == 0) {
		$("msg").text("原密码必须输入");
		return false;
	}
	if($.trim($("#oldpass").val()).length < 6 || $.trim($("#oldpass").val()).length > 32) {
		$("msg").text("新密码长度必须在6-32之间");
		return false;
	}
	return true;
}
</script>
</body>
</html>